<?php
  require('apps/mobile/mobile_device_detect.php');
  $mobile = mobile_device_detect();
  if($mobile==true)
    die("<p style=\"color: #550000;\">Sorry, this site is not for use with mobile. Please login using your computer.</p>");
  require('conf/main.conf.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title><?php echo $Title; ?></title>
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  <meta http-equiv="cache-control" content="no-cache" />
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="expires" content="-1">
  <link rel="stylesheet" href="styles/current.stylesheet.css" type="text/css" />
  <link rel="stylesheet" href="external/jquery/ui/css/ui.all.css" type="text/css" />
  <script type="text/javascript" src="external/jquery/jquery-1.3.2.min.js"></script>
  <script type="text/javascript" src="external/jquery/ui/ui.core.min.js"></script>
  <script type="text/javascript" src="external/jquery/ui/ui.dialog.min.js"></script>
  <script type="text/javascript" src="modules/common/common.js"></script>
  <script type="text/javascript" src="modules/common/getsubfolders.js"></script>
  <script type="text/javascript" src="modules/browse/browse.js"></script>
  <script type="text/javascript" src="modules/create_folder/create_folder.js"></script>
  <script type="text/javascript" src="modules/delete/delete.js"></script>
  <script type="text/javascript" src="modules/copy/copy.js"></script>
  <script type="text/javascript" src="modules/move/move.js"></script>
  <script type="text/javascript" src="modules/rename/rename.js"></script>
</head>

<body onload="javascript: Browse('/');">
  <input type="hidden" id="currentdir" name="cdir" value=""/>
  <div class="table" id="maintable">
    <div class="caption"><?php echo $Title; ?></div>
    <div id="message" class="message"><?php echo $Message; ?></div>
    <div style="background: #00004F; border: 1px solid #000000;">
      <script type="text/javascript"><!--
      google_ad_client = "ca-pub-8378301520335579";
      /* BannerTxt1 */
      google_ad_slot = "3830645742";
      google_ad_width = document.getElementById('maintable').offsetWidth-140; //728;
      google_ad_height = 90;
      //-->
      </script>
      <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
      <script type="text/javascript"><!--
      google_ad_client = "ca-pub-8378301520335579";
      /* TextVertical_120x90 */
      google_ad_slot = "6632150813";
      google_ad_width = 120;
      google_ad_height = 90;
      //-->
      </script>
      <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
    </div>
    <div class="path" id="path">Directory: AjaxDir</div>
    <div class="menu">
      <small>
      <p style="float: left;">|&nbsp;
      <span id="btn_createfolder" title="Create New Folder">Create Folder</span>&nbsp;|
      <span id="btn_share" title="Share File with Others">Share <font color="#ff0000" size="2px"><sup>*New</sup></font></span>|<br />|&nbsp;
      <span id="btn_delete" title="Delete Selected Files/Folders">Delete</span>&nbsp;|
      <span id="btn_move" title="Move Selected Files/Folders">Move</span>&nbsp;|
      <span id="btn_copy" title="Copy Selected Files/Folders">Copy</span>&nbsp;|
      <span id="btn_rename" title="Rename Selected File/Folder">Rename</span>&nbsp;|
      <span id="btn_upload" title="Upload File to Current Directory">Upload</span>&nbsp;|
      </p>
      <p style="float: right; text-align: right;">
      Welcome, <font color="green" size +=1><b style="text-transform: capitalize; color: #800000;"><?php echo $Fullname; ?></b></font><br />|&nbsp;
      <span id="btn_messages" title="You've 2 Messages Unread">Messages<span id="msgcounts"> (<span class="unread">2 unread</span>)</span></span>&nbsp;|&nbsp;
      <span id="btn_settings" title="Change Settings/Password..etc">Settings</span>&nbsp;|
      <span id="btn_logout" title="Signout from curent session">Logout</span> |
      </p>
      </small>
    </div>
    <div style="clear: both;"></div>
    <div class="heading">
      <span class="iconcolumn">&nbsp;</span>
      <span class="namecolumn" style="width: 39%;">Item</span>
      <span class="typecolumn" style="width: 34%;">Type</span>
      <span class="sizecolumn">Size</span>
      <span class="checkboxcolumn"><input type="checkbox" id="dummy" title="Select All" /></span>
    </div>
    <form name="Form1" id="Form">
      <input type="hidden" id="action" name="action" />
      <div class="contents" id="contents">
      </div>
    </form>
    <noscript>      
      <p>Please enable JavaScript to use this website.</p>
    </noscript>         
  </div>
  <div style="text-align: center; margin: 10px;"><small>You are using <b><span id="showusage">0 MB</span></b> out of <b><span id="storagelimit"><?php echo $_SESSION['storagelimit']; ?></span> MB.</b></small></div>
  <div class="footer">
    &copy;2011-12 Saravana Kumar.A | Powered by Indexer
    <p align="center">
      <img style="border: 0px;" src="images/others/valid-xhtml10.png" title="Valid XHTML 1.0 Transitional" alt="Valid XHTML 1.0 Transitional" height="31" width="88" />
    </p>
  </div>
  
  <script type="text/javascript" src="modules/common/listener.js"></script>
  
</body>

</html>
